package com.ethink.order.api.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 销售退单 新增请求对象
 *
 * @author default
 * @date 2022-12-09
 */
@Data
public class SaleReturnOrderAddRequest {

    @Schema(description = "销售退单号", hidden = true)
    private String orderNo;

    @Schema(description = "销售单号")
    private String saleOrderNo;

    @NotNull
    @Schema(description = "分仓编码")
    private String subWarehouseCode;

    @Schema(description = "分仓名称", hidden = true)
    private String subWarehouseName;

    @Schema(description = "枚举 订单状态:1-草稿(s1)|2-待审批(s2)|3-待退货(s3)|4-完成(s4)")
    private Integer returnStatus;

    @Schema(description = "制单人编码", hidden = true)
    private String createUserCode;

    @Schema(description = "制单人名称", hidden = true)
    private String createUserName;

    @Schema(description = "备注")
    private String remark;

    @NotEmpty
    @Schema(description = "详情")
    private List<SaleReturnDetailOrderAddRequest> item;

    @Schema(description = "订单类型",hidden = true)
    private Integer orderType;

    @Schema(description = "网店订单号",hidden = true)
    private String shopOrderNo;

}
